<html>
    <head>
        <title>Welcome to Grails</title>
		<meta name="layout" content="main" />
    </head>
    <body>


        <MARQUEE>
            <h1 style="margin-left:20px;">Welcome to Grails Event Manager</h1>
        </MARQUEE>

        <p style="margin-left:20px;width:80%">You are logged in: <% UserAccount userAcc = session.getAttribute("userAccount"); print userAcc.getFirstName() + " " + userAcc.getLastName(); %></p>

    <div class="nav">
      <span class="menuButton"><g:link controller = 'event' action="myevents">My Events</g:link></span>
      <span class="menuButton"><g:link controller = 'event' class="create" action="create">Create Event</g:link></span>
      <span class="menuButton"><g:link controller = 'userAccount' action="edit">Update user information</g:link></span>
      
      <span class="menuButton"><g:link controller = "event" action="futureevents">Future Event List</g:link></span>
       <span class="menuButton"><g:link controller = "rss" action="feed">Rss Event feed</g:link></span>
      <span class="menuButton"><g:link controller = 'userAccount' class="logout" action="logout">Logout</g:link></span>
    </div>
    </body>
</html>